package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.Course;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author ZHB
 * @version 1.0.0
 * @date Create in 2020/11/19
 */


@Data
@Accessors(chain = true)
public class CourseAddDto extends BaseDto<Course> {

    @ApiParam(value = "课程编号", required = true)
    @NotNull
    private String cno;

    @ApiParam(value = "课程名称", required = true)
    @NotNull
    private String cname;

    @ApiParam(value = "教师编号", required = true)
    @NotNull
    private String tno;

    @ApiParam(value = "最大人数")
    private Integer maxSize;

    @ApiParam(value = "总数量")
    private Integer total;

    @ApiParam(value = "状态")
    private String status;
    @ApiParam(value = "学期")
    private Integer cterm;

}
